package cn.zyb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * @author zyb
 * @version 1.0.0
 * @date 2022年08月09日 17:41:28
 * @packageName cn.zyb
 * @className ConfigServerApp
 * @describe TODO
 */
@SpringBootApplication
// 开启Eureka客户端服务，也可以不加，只要导入了Jar包默认就开启客户端
@EnableDiscoveryClient
// 开启config服务端
@EnableConfigServer
public class ConfigServerApp {
    public static void main(String[] args) {
        SpringApplication.run(ConfigServerApp.class, args);
    }
}
